package com.tencreat.domain.mall;

import com.baomidou.mybatisplus.annotation.*;
import com.tencreat.common.annotation.Excel;
import com.tencreat.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;


/**
 * 朋友圈素材对象 mall_material
 *
 * @author tencreat
 * @date 2022-01-10
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
@AllArgsConstructor
@NoArgsConstructor
@ApiModel
@TableName("mall_material")
public class MallMaterial extends BaseEntity<MallMaterial> {
    private static final long serialVersionUID = 1L;


    /** $column.columnComment */
    @TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "ID")
    private Long id;


    /** 朋友圈素材名称 */
    @Excel(name = "朋友圈素材名称")
    @ApiModelProperty(value= "朋友圈素材名称")
    @TableField("`title`")
    private String title;


    /** 朋友圈素材图片 */
    @Excel(name = "朋友圈素材图片")
    @ApiModelProperty(value= "朋友圈素材图片")
    @TableField("`pic_url`")
    private String picUrl;


    /** 朋友圈素材内容 */
    @Excel(name = "朋友圈素材内容")
    @ApiModelProperty(value= "朋友圈素材内容")
    @TableField("`context`")
    private String context;


    /** 朋友圈素材状态 */
    @Excel(name = "朋友圈素材状态")
    @ApiModelProperty(value= "朋友圈素材状态")
    @TableField("`state`")
    private Integer state;


    /** 用户ID */
    @Excel(name = "用户ID")
    @ApiModelProperty(value= "用户ID")
    @TableField("`user_id`")
    private Long userId;


    /** 删除标志（0代表存在 2代表删除） */
    @TableLogic
    @TableField("`del_flag`")
    private String delFlag;


    /** 租户ID */
    @Excel(name = "租户ID")
    @ApiModelProperty(value= "租户ID")
    @TableField("`tenant_id`")
    private Long tenantId;


    @ApiModelProperty(value= "显示顺序")
    @TableField("`sort`")
    private Integer sort;

    @ApiModelProperty(value= "是否置顶  0-否 1-是")
    private Integer top;
}
